package org.example.service;

import org.example.entity.Category;
import org.example.entity.Goods;
import org.example.entity.GoodsByCategory;
import org.example.entity.PageBean;

import java.util.List;

public interface GoodsService {
    void addGoods(Goods goods);

    PageBean<Goods> listByReason(Integer pageSize, Integer page,String goodsName,String categoryName,String status);

    void delete(Integer goodsId);

    void update(Goods goods);

    List<String> list();

    List<Goods> goodsList();

    List<GoodsByCategory> getGoodsByCategory(List<Category> list);
}
